//
//  MailListTableViewCell.h
//  EpointFrame5
//
//  Created by Pill Gong on 14-2-7.
//  Copyright (c) 2014年 Epoint. All rights reserved.
//

#import <UIKit/UIKit.h>

#define ButtonWidth 80
#define SwipeEnableTableCellHeight 75.0f

#define ShareButtonBGColor COLOR(0, 128, 0)
#define DownloadButtonBGColor COLOR(30, 144, 255)
#define DeleteButtonBGColor COLOR(255, 0, 0)

@class MailListTableViewCell;

@protocol MailListTableViewCellDelegate <NSObject>

- (void)cellMoveLeftStarted:(MailListTableViewCell *)cell;
- (void)cellMoveLeftEnded:(MailListTableViewCell *)cell;
- (void)cellMoveRightStarted:(MailListTableViewCell *)cell;
- (void)cellMoveRightEnded:(MailListTableViewCell *)cell;

@optional

- (void)cellSignButtonPressed:(MailListTableViewCell *)cell;
- (void)cellDeleteButtonPressed:(MailListTableViewCell *)cell;

@end


@interface MailListTableViewCell : UITableViewCell

@property (nonatomic, strong) UILabel *fromPerson;
@property (nonatomic, strong) UILabel *title;
@property (nonatomic, strong) UILabel *fromDate;
//@property (nonatomic, strong) UILabel *description;
@property (nonatomic, strong) UIImageView *isReadImage;
//@property (nonatomic, strong) UILabel *attachNum;
@property (nonatomic, strong) UIImageView *hasAttach;

@property (nonatomic, assign) id<MailListTableViewCellDelegate> delegate;

- (void)moveLeft;
- (void)moveRight;
@end
